<layout name="layout" />

<script src="__CDN__/Scripts/PSI/Subject/MainForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Subject/EditForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Subject/ParentSubjectField.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Subject/FmtColEditForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Subject/FmtColShowOrderEditForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>

<script>
  Ext.onReady(function () {
    PSI.Const.PROD_NAME = "{$site.name|mb_substr=0,4,'utf-8'|mb_strtoupper='utf-8'}";

    var app = Ext.create("PSI.App", {
      userName: "{$admin.username}",
      productionName: "{$site.name|mb_substr=0,4,'utf-8'|mb_strtoupper='utf-8'}",
      appHeaderInfo: {
        title: "{$title}",
      }
    });

    app.add(Ext.create("PSI.Subject.MainForm"));
  });
</script>
